/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.shinyray.project.bpm;

import java.util.Map;
import java.util.Set;

import org.jbpm.pvm.Execution;
import org.jbpm.pvm.ExternalActivity;
import org.jbpm.pvm.SignalDefinition;

public class WaitState implements ExternalActivity {
  private static final long serialVersionUID = 1L;

  public void execute(Execution execution) throws Exception {
    execution.waitForSignal();
  }

  public void signal(Execution execution, String signal, Map<String, Object> parameters) throws Exception {
  }

  public Set<SignalDefinition> getSignals(Execution execution) throws Exception {
    return null;
  }
}
